import {combineReducers} from 'redux'

import userReducer from './user'
import commonReducer from './common'
import interviewReducer from './interview'

// 把多个reducer合并成一个reducer
// 同时把每一个模块中的state合并成一个state 
const reducer = combineReducers({
    user:userReducer,
    common:commonReducer,
    interview:interviewReducer
})

// state = {userReducer:{userInfo},commonReducer:{showMenu:true},interviewReducer:{}}

export default reducer;